package com.tech15.msg.action;

import static javacommon.util.extjs.Struts2JsonHelper.outJsonArray;

import java.util.ArrayList;
import java.util.List;

import javacommon.base.BaseStruts2Action;

import com.tech15.msg.model.OnLine;

public class OnLineMessageAction extends BaseStruts2Action{
	
	@Override
	public String execute() throws Exception {
		String userid = this.getLoginInfo().getUsername();
		
		List<OnLine> list = new ArrayList<OnLine>();
		OnLine ol = new OnLine();
		
		ol = new OnLine();
		ol.setTitle("onlineUser");
		list.add(ol);
		
		outJsonArray(list);
		//JSON json = JSONSerializer.toJSON(list); 
		
		return null;
	}
}
